package com.mtaite.study.mybatis;

import com.mtaite.study.mybatis.init.InitMethodBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.mtaite.study")
public class WebfluxApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebfluxApplication.class, args);
    }

    @Bean(initMethod="init")
    public InitMethodBean exBean() {
        return new InitMethodBean();
    }
}